---
title: SearchApi tool
---

The `SearchApi` tool connects your agents and chains to the internet.

A wrapper around the Search API. This tool is handy when you need to answer questions about current events.

## Usage

Input should be a search query.

import SearchapiGoogleNews from "/snippets/javascript-integrations/examples/tools/searchapi_google_news.mdx";

import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx';

<IntegrationInstallTooltip/>

```bash npm
npm install @langchain/openai @langchain/core
```

<SearchapiGoogleNews />

## Related

- Tool [conceptual guide](/oss/langchain/tools)
- Tool [how-to guides](/oss/how-to/#tools)
